<script type = "text/javascript" language = "javascript">
  function qurenk()
  {
	  if (confirm("是否确认"))  {  
		  return true;
		  }  else  { 
		  return false;
		  };   
  }
 </script>
<div style="float: right;">
<form action="/sdksystem/order" method="post">
订单状态:
<SELECT name="status">
<option value="all">all</option>
<option value="pending">pending</option>
<option value="declined">declined</option>
<option value="Success">Success</option>
</SELECT>
时间:<link type="text/css" rel="stylesheet" href="/javascript/WdatePicker.css">
<script type="text/javascript" src="/javascript/WdatePicker.js"></script>
<input  onclick="WdatePicker()" value="" id="dates" name="start_time" readonly="readonly">
<input  onclick="WdatePicker()" value="" id="dates" name="end_time" readonly="readonly">
IP:<INPUT type="text" name="ip" value=""/>
域名:<INPUT type="text" name="sitename" value=""/>
email:<INPUT type="text" name="email" value=""/>
<INPUT type="submit" value="搜索" />
</form>
</div>
<table class="table table-striped">
<tr><th>订单ID</th><th>交易网站</th><th>金额</th><th>姓名</th><th>email</th><th>IP</th><th>下单时间</th><th>运费</th><th>订单状态</th><th>详细</th><th>操作</th></tr>
<?php foreach($dt as $v):?>

<tr <?php if($v->status=='Success'){echo 'style="color:green;"';}else if($v->status=='declined'){echo 'style="color:red;"';}?>><td><?php echo $v->orderid; ?></td><td><?php echo $v->sitename; ?></td><td><?php echo $v->total . ' ' . $v->currency; ?></td>
<td><?php echo $v->firstname.' '.$v->lastname; ?></td>
<td><?php echo $v->email; ?></td>
<td><a href="http://ip138.com/ips138.asp?ip=<?php echo $v->ip; ?>" target="_blank"><?php echo $v->ip; ?></a></td>
<td><?php echo date('m-d H:i', $v->create_time); ?></td><td><?php echo $v->shippingfee.' '.$v->currency;?></td><td><?php echo $v->status; ?></td><td><a href="/sdksystem/order_detail/<?php echo $v->orderid; ?>" >>></a></td>
<td><a href="/sdksystem/delorder/<?php echo $v->orderid; ?>" onclick="return qurenk()">删除</a></td>
</tr>
<?php endforeach ?>
</table>
<?php echo $page;?>